0 QTRS
↳1 DependencyPairsProof (⇔)
↳2 QDP
↳3 DependencyGraphProof (⇔)
↳4 QDP
↳5 QDPOrderProof (⇔)
↳6 QDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 QDP
↳10 QDPOrderProof (⇔)
↳11 QDP
↳12 DependencyGraphProof (⇔)
↳13 TRUE
↳14 QDP
↳15 QDPOrderProof (⇔)
↳16 QDP
↳17 DependencyGraphProof (⇔)
↳18 AND
↳19 QDP
↳20 QDPOrderProof (⇔)
↳21 QDP
↳22 PisEmptyProof (⇔)
↳23 YES
↳24 QDP
↳25 Narrowing (⇔)
↳26 QDP
↳27 Narrowing (⇔)
↳28 QDP
↳29 DependencyGraphProof (⇔)
↳30 QDP
↳31 Narrowing (⇔)
↳32 QDP
↳33 DependencyGraphProof (⇔)
↳34 QDP
↳35 Narrowing (⇔)
↳36 QDP
↳37 DependencyGraphProof (⇔)
↳38 QDP
↳39 Narrowing (⇔)
↳40 QDP
↳41 Narrowing (⇔)
↳42 QDP
↳43 DependencyGraphProof (⇔)
↳44 QDP
↳45 Narrowing (⇔)
↳46 QDP
↳47 Narrowing (⇔)
↳48 QDP
↳49 QDPOrderProof (⇔)
↳50 QDP
↳51 DependencyGraphProof (⇔)
↳52 AND
↳53 QDP
↳54 UsableRulesProof (⇔)
↳55 QDP
↳56 MNOCProof (⇔)
↳57 QDP
↳58 Rewriting (⇔)
↳59 QDP
↳60 UsableRulesProof (⇔)
↳61 QDP
↳62 QReductionProof (⇔)
↳63 QDP
↳64 Instantiation (⇔)
↳65 QDP
↳66 NonTerminationProof (⇔)
↳67 NO
↳68 QDP
↳69 QDP
↳70 Narrowing (⇔)
↳71 QDP
↳72 Narrowing (⇔)
↳73 QDP
↳74 DependencyGraphProof (⇔)
↳75 QDP
↳76 Narrowing (⇔)
↳77 QDP
↳78 DependencyGraphProof (⇔)
↳79 QDP
↳80 Narrowing (⇔)
↳81 QDP
↳82 DependencyGraphProof (⇔)
↳83 QDP
↳84 Narrowing (⇔)
↳85 QDP
↳86 Narrowing (⇔)
↳87 QDP
↳88 DependencyGraphProof (⇔)
↳89 QDP
↳90 Narrowing (⇔)
↳91 QDP
↳92 Narrowing (⇔)
↳93 QDP
↳94 QDPOrderProof (⇔)
↳95 QDP
↳96 DependencyGraphProof (⇔)
↳97 AND
↳98 QDP
↳99 UsableRulesProof (⇔)
↳100 QDP
↳101 MNOCProof (⇔)
↳102 QDP
↳103 Rewriting (⇔)
↳104 QDP
↳105 UsableRulesProof (⇔)
↳106 QDP
↳107 QReductionProof (⇔)
↳108 QDP
↳109 Instantiation (⇔)
↳110 QDP
↳111 QDP
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(IL) → ISNATLIST(activate(IL))
ISNATILIST(IL) → ACTIVATE(IL)
ISNAT(n__s(N)) → ISNAT(activate(N))
ISNAT(n__s(N)) → ACTIVATE(N)
ISNAT(n__length(L)) → ISNATLIST(activate(L))
ISNAT(n__length(L)) → ACTIVATE(L)
ISNATILIST(n__cons(N, IL)) → AND(isNat(activate(N)), isNatIList(activate(IL)))
ISNATILIST(n__cons(N, IL)) → ISNAT(activate(N))
ISNATILIST(n__cons(N, IL)) → ACTIVATE(N)
ISNATILIST(n__cons(N, IL)) → ISNATILIST(activate(IL))
ISNATILIST(n__cons(N, IL)) → ACTIVATE(IL)
ISNATLIST(n__cons(N, L)) → AND(isNat(activate(N)), isNatList(activate(L)))
ISNATLIST(n__cons(N, L)) → ISNAT(activate(N))
ISNATLIST(n__cons(N, L)) → ACTIVATE(N)
ISNATLIST(n__cons(N, L)) → ISNATLIST(activate(L))
ISNATLIST(n__cons(N, L)) → ACTIVATE(L)
ISNATLIST(n__take(N, IL)) → AND(isNat(activate(N)), isNatIList(activate(IL)))
ISNATLIST(n__take(N, IL)) → ISNAT(activate(N))
ISNATLIST(n__take(N, IL)) → ACTIVATE(N)
ISNATLIST(n__take(N, IL)) → ISNATILIST(activate(IL))
ISNATLIST(n__take(N, IL)) → ACTIVATE(IL)
ZEROS → CONS(0, n__zeros)
ZEROS → 01
TAKE(0, IL) → UTAKE1(isNatIList(IL))
TAKE(0, IL) → ISNATILIST(IL)
UTAKE1(tt) → NIL
TAKE(s(M), cons(N, IL)) → UTAKE2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
TAKE(s(M), cons(N, IL)) → AND(isNat(M), and(isNat(N), isNatIList(activate(IL))))
TAKE(s(M), cons(N, IL)) → ISNAT(M)
TAKE(s(M), cons(N, IL)) → AND(isNat(N), isNatIList(activate(IL)))
TAKE(s(M), cons(N, IL)) → ISNAT(N)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
UTAKE2(tt, M, N, IL) → CONS(activate(N), n__take(activate(M), activate(IL)))
UTAKE2(tt, M, N, IL) → ACTIVATE(N)
UTAKE2(tt, M, N, IL) → ACTIVATE(M)
UTAKE2(tt, M, N, IL) → ACTIVATE(IL)
LENGTH(cons(N, L)) → ULENGTH(and(isNat(N), isNatList(activate(L))), activate(L))
LENGTH(cons(N, L)) → AND(isNat(N), isNatList(activate(L)))
LENGTH(cons(N, L)) → ISNAT(N)
LENGTH(cons(N, L)) → ISNATLIST(activate(L))
LENGTH(cons(N, L)) → ACTIVATE(L)
ULENGTH(tt, L) → S(length(activate(L)))
ULENGTH(tt, L) → LENGTH(activate(L))
ULENGTH(tt, L) → ACTIVATE(L)
ACTIVATE(n__0) → 01
ACTIVATE(n__s(X)) → S(X)
ACTIVATE(n__length(X)) → LENGTH(X)
ACTIVATE(n__zeros) → ZEROS
ACTIVATE(n__cons(X1, X2)) → CONS(X1, X2)
ACTIVATE(n__nil) → NIL
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(N, L)) → ISNAT(activate(N))
ISNAT(n__s(N)) → ISNAT(activate(N))
ISNAT(n__s(N)) → ACTIVATE(N)
ACTIVATE(n__length(X)) → LENGTH(X)
LENGTH(cons(N, L)) → ULENGTH(and(isNat(N), isNatList(activate(L))), activate(L))
ULENGTH(tt, L) → LENGTH(activate(L))
LENGTH(cons(N, L)) → ISNAT(N)
ISNAT(n__length(L)) → ISNATLIST(activate(L))
ISNATLIST(n__cons(N, L)) → ACTIVATE(N)
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
TAKE(0, IL) → ISNATILIST(IL)
ISNATILIST(IL) → ISNATLIST(activate(IL))
ISNATLIST(n__cons(N, L)) → ISNATLIST(activate(L))
ISNATLIST(n__cons(N, L)) → ACTIVATE(L)
ISNATLIST(n__take(N, IL)) → ISNAT(activate(N))
ISNAT(n__length(L)) → ACTIVATE(L)
ISNATLIST(n__take(N, IL)) → ACTIVATE(N)
ISNATLIST(n__take(N, IL)) → ISNATILIST(activate(IL))
ISNATILIST(IL) → ACTIVATE(IL)
ISNATILIST(n__cons(N, IL)) → ISNAT(activate(N))
ISNATILIST(n__cons(N, IL)) → ACTIVATE(N)
ISNATILIST(n__cons(N, IL)) → ISNATILIST(activate(IL))
ISNATILIST(n__cons(N, IL)) → ACTIVATE(IL)
ISNATLIST(n__take(N, IL)) → ACTIVATE(IL)
TAKE(s(M), cons(N, IL)) → UTAKE2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
UTAKE2(tt, M, N, IL) → ACTIVATE(N)
UTAKE2(tt, M, N, IL) → ACTIVATE(M)
UTAKE2(tt, M, N, IL) → ACTIVATE(IL)
TAKE(s(M), cons(N, IL)) → ISNAT(M)
TAKE(s(M), cons(N, IL)) → ISNAT(N)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
LENGTH(cons(N, L)) → ISNATLIST(activate(L))
LENGTH(cons(N, L)) → ACTIVATE(L)
ULENGTH(tt, L) → ACTIVATE(L)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ACTIVATE(n__length(X)) → LENGTH(X)
LENGTH(cons(N, L)) → ISNAT(N)
ISNAT(n__length(L)) → ISNATLIST(activate(L))
ISNAT(n__length(L)) → ACTIVATE(L)
LENGTH(cons(N, L)) → ISNATLIST(activate(L))
LENGTH(cons(N, L)) → ACTIVATE(L)
ULENGTH(tt, L) → ACTIVATE(L)
POL( ISNAT(x1) ) = x1
POL( ISNATILIST(x1) ) = 2x1
POL( ISNATLIST(x1) ) = 2x1
POL( LENGTH(x1) ) = 2x1 + 1
POL( ULENGTH(x1, x2) ) = 2x2 + 1
POL( UTAKE2(x1, ..., x4) ) = 2x2 + 2x3 + 2x4
POL( and(x1, x2) ) = 2x2
POL( cons(x1, x2) ) = 2x1 + x2
POL( isNat(x1) ) = max{0, -2}
POL( isNatList(x1) ) = max{0, -1}
POL( uLength(x1, x2) ) = 2x2 + 2
POL( uTake2(x1, ..., x4) ) = 2x2 + 2x3 + 2x4
POL( isNatIList(x1) ) = max{0, -2}
POL( n__take(x1, x2) ) = 2x1 + 2x2
POL( length(x1) ) = 2x1 + 2
POL( s(x1) ) = x1
POL( activate(x1) ) = x1
POL( n__0 ) = 0
POL( 0 ) = 0
POL( n__s(x1) ) = x1
POL( n__length(x1) ) = 2x1 + 2
POL( n__zeros ) = 0
POL( zeros ) = 0
POL( n__cons(x1, x2) ) = 2x1 + x2
POL( n__nil ) = 0
POL( nil ) = 0
POL( take(x1, x2) ) = 2x1 + 2x2
POL( tt ) = 0
POL( uTake1(x1) ) = max{0, -2}
POL( ACTIVATE(x1) ) = x1
POL( TAKE(x1, x2) ) = 2x1 + 2x2
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
length(X) → n__length(X)
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
take(X1, X2) → n__take(X1, X2)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
cons(X1, X2) → n__cons(X1, X2)
uLength(tt, L) → s(length(activate(L)))
s(X) → n__s(X)
zeros → cons(0, n__zeros)
zeros → n__zeros
0 → n__0
nil → n__nil
ISNATLIST(n__cons(N, L)) → ISNAT(activate(N))
ISNAT(n__s(N)) → ISNAT(activate(N))
ISNAT(n__s(N)) → ACTIVATE(N)
LENGTH(cons(N, L)) → ULENGTH(and(isNat(N), isNatList(activate(L))), activate(L))
ULENGTH(tt, L) → LENGTH(activate(L))
ISNATLIST(n__cons(N, L)) → ACTIVATE(N)
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
TAKE(0, IL) → ISNATILIST(IL)
ISNATILIST(IL) → ISNATLIST(activate(IL))
ISNATLIST(n__cons(N, L)) → ISNATLIST(activate(L))
ISNATLIST(n__cons(N, L)) → ACTIVATE(L)
ISNATLIST(n__take(N, IL)) → ISNAT(activate(N))
ISNATLIST(n__take(N, IL)) → ACTIVATE(N)
ISNATLIST(n__take(N, IL)) → ISNATILIST(activate(IL))
ISNATILIST(IL) → ACTIVATE(IL)
ISNATILIST(n__cons(N, IL)) → ISNAT(activate(N))
ISNATILIST(n__cons(N, IL)) → ACTIVATE(N)
ISNATILIST(n__cons(N, IL)) → ISNATILIST(activate(IL))
ISNATILIST(n__cons(N, IL)) → ACTIVATE(IL)
ISNATLIST(n__take(N, IL)) → ACTIVATE(IL)
TAKE(s(M), cons(N, IL)) → UTAKE2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
UTAKE2(tt, M, N, IL) → ACTIVATE(N)
UTAKE2(tt, M, N, IL) → ACTIVATE(M)
UTAKE2(tt, M, N, IL) → ACTIVATE(IL)
TAKE(s(M), cons(N, IL)) → ISNAT(M)
TAKE(s(M), cons(N, IL)) → ISNAT(N)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ULENGTH(tt, L) → LENGTH(activate(L))
LENGTH(cons(N, L)) → ULENGTH(and(isNat(N), isNatList(activate(L))), activate(L))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ULENGTH(tt, L) → LENGTH(activate(L))
POL(ULENGTH(x1, x2)) = -I + 0A · x1 + 1A · x2
POL(tt) = 3A
POL(LENGTH(x1)) = 2A + 0A · x1
POL(activate(x1)) = 1A + 0A · x1
POL(cons(x1, x2)) = 0A + -I · x1 + 1A · x2
POL(and(x1, x2)) = -I + -I · x1 + 0A · x2
POL(isNat(x1)) = 3A + 1A · x1
POL(isNatList(x1)) = 2A + 1A · x1
POL(n__0) = 0A
POL(0) = 0A
POL(n__s(x1)) = 3A + 1A · x1
POL(s(x1)) = 3A + 1A · x1
POL(n__length(x1)) = 2A + 0A · x1
POL(length(x1)) = 2A + 0A · x1
POL(n__zeros) = 0A
POL(zeros) = 1A
POL(n__cons(x1, x2)) = -I + -I · x1 + 1A · x2
POL(n__nil) = 2A
POL(nil) = 2A
POL(n__take(x1, x2)) = 2A + 0A · x1 + 0A · x2
POL(take(x1, x2)) = 2A + 0A · x1 + 0A · x2
POL(isNatIList(x1)) = 3A + 1A · x1
POL(uLength(x1, x2)) = 0A + 0A · x1 + 1A · x2
POL(uTake1(x1)) = 2A + -I · x1
POL(uTake2(x1, x2, x3, x4)) = 3A + -I · x1 + 1A · x2 + -I · x3 + 1A · x4
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
and(tt, T) → T
length(X) → n__length(X)
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
take(X1, X2) → n__take(X1, X2)
take(0, IL) → uTake1(isNatIList(IL))
isNatIList(n__zeros) → tt
uTake1(tt) → nil
isNatIList(IL) → isNatList(activate(IL))
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
cons(X1, X2) → n__cons(X1, X2)
uLength(tt, L) → s(length(activate(L)))
s(X) → n__s(X)
zeros → cons(0, n__zeros)
zeros → n__zeros
0 → n__0
nil → n__nil
LENGTH(cons(N, L)) → ULENGTH(and(isNat(N), isNatList(activate(L))), activate(L))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNAT(n__s(N)) → ISNAT(activate(N))
ISNAT(n__s(N)) → ACTIVATE(N)
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
TAKE(0, IL) → ISNATILIST(IL)
ISNATILIST(IL) → ISNATLIST(activate(IL))
ISNATLIST(n__cons(N, L)) → ISNAT(activate(N))
ISNATLIST(n__cons(N, L)) → ACTIVATE(N)
ISNATLIST(n__cons(N, L)) → ISNATLIST(activate(L))
ISNATLIST(n__cons(N, L)) → ACTIVATE(L)
ISNATLIST(n__take(N, IL)) → ISNAT(activate(N))
ISNATLIST(n__take(N, IL)) → ACTIVATE(N)
ISNATLIST(n__take(N, IL)) → ISNATILIST(activate(IL))
ISNATILIST(IL) → ACTIVATE(IL)
ISNATILIST(n__cons(N, IL)) → ISNAT(activate(N))
ISNATILIST(n__cons(N, IL)) → ACTIVATE(N)
ISNATILIST(n__cons(N, IL)) → ISNATILIST(activate(IL))
ISNATILIST(n__cons(N, IL)) → ACTIVATE(IL)
ISNATLIST(n__take(N, IL)) → ACTIVATE(IL)
TAKE(s(M), cons(N, IL)) → UTAKE2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
UTAKE2(tt, M, N, IL) → ACTIVATE(N)
UTAKE2(tt, M, N, IL) → ACTIVATE(M)
UTAKE2(tt, M, N, IL) → ACTIVATE(IL)
TAKE(s(M), cons(N, IL)) → ISNAT(M)
TAKE(s(M), cons(N, IL)) → ISNAT(N)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
ISNATLIST(n__take(N, IL)) → ISNAT(activate(N))
ISNATLIST(n__take(N, IL)) → ACTIVATE(N)
ISNATLIST(n__take(N, IL)) → ISNATILIST(activate(IL))
ISNATLIST(n__take(N, IL)) → ACTIVATE(IL)
POL( ISNAT(x1) ) = 2x1 + 2
POL( ISNATILIST(x1) ) = 2x1 + 2
POL( ISNATLIST(x1) ) = 2x1 + 2
POL( UTAKE2(x1, ..., x4) ) = 2x2 + 2x3 + 2x4 + 2
POL( and(x1, x2) ) = 2x2
POL( cons(x1, x2) ) = 2x1 + x2
POL( isNat(x1) ) = 2
POL( isNatList(x1) ) = max{0, -2}
POL( uLength(x1, x2) ) = max{0, -1}
POL( uTake2(x1, ..., x4) ) = x1 + 2x2 + 2x3 + 2x4 + 1
POL( isNatIList(x1) ) = max{0, -2}
POL( n__take(x1, x2) ) = 2x1 + 2x2 + 1
POL( length(x1) ) = 0
POL( s(x1) ) = 2x1
POL( activate(x1) ) = x1
POL( n__0 ) = 0
POL( 0 ) = 0
POL( n__s(x1) ) = 2x1
POL( n__length(x1) ) = max{0, -2}
POL( n__zeros ) = 0
POL( zeros ) = 0
POL( n__cons(x1, x2) ) = 2x1 + x2
POL( n__nil ) = 0
POL( nil ) = 0
POL( take(x1, x2) ) = 2x1 + 2x2 + 1
POL( tt ) = 0
POL( uTake1(x1) ) = 1
POL( ACTIVATE(x1) ) = 2x1 + 2
POL( TAKE(x1, x2) ) = 2x1 + 2x2 + 2
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(IL) → isNatList(activate(IL))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
and(tt, T) → T
length(X) → n__length(X)
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
isNatList(n__nil) → tt
take(X1, X2) → n__take(X1, X2)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
cons(X1, X2) → n__cons(X1, X2)
uLength(tt, L) → s(length(activate(L)))
s(X) → n__s(X)
zeros → cons(0, n__zeros)
zeros → n__zeros
0 → n__0
nil → n__nil
ISNAT(n__s(N)) → ISNAT(activate(N))
ISNAT(n__s(N)) → ACTIVATE(N)
TAKE(0, IL) → ISNATILIST(IL)
ISNATILIST(IL) → ISNATLIST(activate(IL))
ISNATLIST(n__cons(N, L)) → ISNAT(activate(N))
ISNATLIST(n__cons(N, L)) → ACTIVATE(N)
ISNATLIST(n__cons(N, L)) → ISNATLIST(activate(L))
ISNATLIST(n__cons(N, L)) → ACTIVATE(L)
ISNATILIST(IL) → ACTIVATE(IL)
ISNATILIST(n__cons(N, IL)) → ISNAT(activate(N))
ISNATILIST(n__cons(N, IL)) → ACTIVATE(N)
ISNATILIST(n__cons(N, IL)) → ISNATILIST(activate(IL))
ISNATILIST(n__cons(N, IL)) → ACTIVATE(IL)
TAKE(s(M), cons(N, IL)) → UTAKE2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
UTAKE2(tt, M, N, IL) → ACTIVATE(N)
UTAKE2(tt, M, N, IL) → ACTIVATE(M)
UTAKE2(tt, M, N, IL) → ACTIVATE(IL)
TAKE(s(M), cons(N, IL)) → ISNAT(M)
TAKE(s(M), cons(N, IL)) → ISNAT(N)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNAT(n__s(N)) → ISNAT(activate(N))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ISNAT(n__s(N)) → ISNAT(activate(N))
POL(ISNAT(x1)) = -I + 0A · x1
POL(n__s(x1)) = 2A + 1A · x1
POL(activate(x1)) = 1A + 0A · x1
POL(n__0) = 1A
POL(0) = 1A
POL(s(x1)) = 2A + 1A · x1
POL(n__length(x1)) = 2A + 0A · x1
POL(length(x1)) = 2A + 0A · x1
POL(n__zeros) = 0A
POL(zeros) = 1A
POL(n__cons(x1, x2)) = 1A + 0A · x1 + 1A · x2
POL(cons(x1, x2)) = 1A + 0A · x1 + 1A · x2
POL(n__nil) = 2A
POL(nil) = 2A
POL(n__take(x1, x2)) = 2A + 1A · x1 + 0A · x2
POL(take(x1, x2)) = 2A + 1A · x1 + 0A · x2
POL(uLength(x1, x2)) = -I + 1A · x1 + 1A · x2
POL(and(x1, x2)) = -I + -I · x1 + 0A · x2
POL(isNat(x1)) = 2A + 0A · x1
POL(isNatList(x1)) = -I + 0A · x1
POL(tt) = 2A
POL(uTake1(x1)) = -I + 0A · x1
POL(isNatIList(x1)) = 2A + 0A · x1
POL(uTake2(x1, x2, x3, x4)) = -I + 1A · x1 + 2A · x2 + 0A · x3 + 1A · x4
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
length(X) → n__length(X)
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
isNat(n__0) → tt
isNatList(n__nil) → tt
and(tt, T) → T
isNat(n__s(N)) → isNat(activate(N))
take(X1, X2) → n__take(X1, X2)
take(0, IL) → uTake1(isNatIList(IL))
isNatIList(n__zeros) → tt
uTake1(tt) → nil
isNatIList(IL) → isNatList(activate(IL))
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNat(n__length(L)) → isNatList(activate(L))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
cons(X1, X2) → n__cons(X1, X2)
uLength(tt, L) → s(length(activate(L)))
s(X) → n__s(X)
zeros → cons(0, n__zeros)
zeros → n__zeros
0 → n__0
nil → n__nil
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(N, L)) → ISNATLIST(activate(L))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__0)) → ISNATLIST(0)
ISNATLIST(n__cons(y0, n__s(x0))) → ISNATLIST(s(x0))
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(zeros)
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(cons(x0, x1))
ISNATLIST(n__cons(y0, n__nil)) → ISNATLIST(nil)
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
ISNATLIST(n__cons(y0, n__0)) → ISNATLIST(0)
ISNATLIST(n__cons(y0, n__s(x0))) → ISNATLIST(s(x0))
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(zeros)
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(cons(x0, x1))
ISNATLIST(n__cons(y0, n__nil)) → ISNATLIST(nil)
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__0)) → ISNATLIST(n__0)
ISNATLIST(n__cons(y0, n__s(x0))) → ISNATLIST(s(x0))
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(zeros)
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(cons(x0, x1))
ISNATLIST(n__cons(y0, n__nil)) → ISNATLIST(nil)
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
ISNATLIST(n__cons(y0, n__0)) → ISNATLIST(n__0)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__s(x0))) → ISNATLIST(s(x0))
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(zeros)
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(cons(x0, x1))
ISNATLIST(n__cons(y0, n__nil)) → ISNATLIST(nil)
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__s(x0))) → ISNATLIST(n__s(x0))
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(zeros)
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(cons(x0, x1))
ISNATLIST(n__cons(y0, n__nil)) → ISNATLIST(nil)
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
ISNATLIST(n__cons(y0, n__s(x0))) → ISNATLIST(n__s(x0))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(zeros)
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(cons(x0, x1))
ISNATLIST(n__cons(y0, n__nil)) → ISNATLIST(nil)
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(cons(0, n__zeros))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__zeros)
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(cons(x0, x1))
ISNATLIST(n__cons(y0, n__nil)) → ISNATLIST(nil)
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(cons(0, n__zeros))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__zeros)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(cons(x0, x1))
ISNATLIST(n__cons(y0, n__nil)) → ISNATLIST(nil)
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(cons(0, n__zeros))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(n__cons(x0, x1))
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__nil)) → ISNATLIST(nil)
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(cons(0, n__zeros))
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(n__cons(x0, x1))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__nil)) → ISNATLIST(n__nil)
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(cons(0, n__zeros))
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(n__cons(x0, x1))
ISNATLIST(n__cons(y0, n__nil)) → ISNATLIST(n__nil)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(cons(0, n__zeros))
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(n__cons(x0, x1))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(0, n__zeros))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(cons(n__0, n__zeros))
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(n__cons(x0, x1))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(0, n__zeros))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(cons(n__0, n__zeros))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(n__0, n__zeros))
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(n__cons(x0, x1))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(0, n__zeros))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(n__0, n__zeros))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ISNATLIST(n__cons(y0, n__length(x0))) → ISNATLIST(length(x0))
ISNATLIST(n__cons(y0, x0)) → ISNATLIST(x0)
ISNATLIST(n__cons(y0, n__cons(x0, x1))) → ISNATLIST(n__cons(x0, x1))
POL( ISNATLIST(x1) ) = 2x1 + 2
POL( length(x1) ) = 2x1
POL( cons(x1, x2) ) = x2 + 1
POL( uLength(x1, x2) ) = max{0, 2x1 + x2 - 2}
POL( and(x1, x2) ) = max{0, x1 + x2 - 1}
POL( isNat(x1) ) = 1
POL( isNatList(x1) ) = 1
POL( activate(x1) ) = 2x1 + 2
POL( n__length(x1) ) = 2x1
POL( take(x1, x2) ) = 1
POL( 0 ) = 0
POL( uTake1(x1) ) = x1
POL( isNatIList(x1) ) = 1
POL( s(x1) ) = 0
POL( uTake2(x1, ..., x4) ) = 1
POL( n__take(x1, x2) ) = max{0, -2}
POL( n__cons(x1, x2) ) = x2 + 1
POL( n__0 ) = 0
POL( tt ) = 1
POL( n__s(x1) ) = max{0, -1}
POL( n__zeros ) = 0
POL( zeros ) = 1
POL( n__nil ) = 0
POL( nil ) = 0
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
length(X) → n__length(X)
take(0, IL) → uTake1(isNatIList(IL))
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
take(X1, X2) → n__take(X1, X2)
0 → n__0
activate(n__length(X)) → length(X)
isNat(n__0) → tt
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(X) → X
isNatList(n__nil) → tt
and(tt, T) → T
isNat(n__s(N)) → isNat(activate(N))
activate(n__take(X1, X2)) → take(X1, X2)
isNatIList(n__zeros) → tt
uTake1(tt) → nil
isNatIList(IL) → isNatList(activate(IL))
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNat(n__length(L)) → isNatList(activate(L))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
cons(X1, X2) → n__cons(X1, X2)
uLength(tt, L) → s(length(activate(L)))
s(X) → n__s(X)
zeros → cons(0, n__zeros)
zeros → n__zeros
nil → n__nil
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(0, n__zeros))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(n__0, n__zeros))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(0, n__zeros))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(n__0, n__zeros))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(0, n__zeros))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(n__0, n__zeros))
0 → n__0
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(0, n__zeros))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(n__0, n__zeros))
0 → n__0
0
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(n__0, n__zeros))
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(n__0, n__zeros))
0 → n__0
0
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(n__0, n__zeros))
0
0
ISNATLIST(n__cons(y0, n__zeros)) → ISNATLIST(n__cons(n__0, n__zeros))
ISNATLIST(n__cons(n__0, n__zeros)) → ISNATLIST(n__cons(n__0, n__zeros))
ISNATLIST(n__cons(n__0, n__zeros)) → ISNATLIST(n__cons(n__0, n__zeros))
ISNATLIST(n__cons(y0, n__take(x0, x1))) → ISNATLIST(take(x0, x1))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(N, IL)) → ISNATILIST(activate(IL))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__0)) → ISNATILIST(0)
ISNATILIST(n__cons(y0, n__s(x0))) → ISNATILIST(s(x0))
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(zeros)
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(cons(x0, x1))
ISNATILIST(n__cons(y0, n__nil)) → ISNATILIST(nil)
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
ISNATILIST(n__cons(y0, n__0)) → ISNATILIST(0)
ISNATILIST(n__cons(y0, n__s(x0))) → ISNATILIST(s(x0))
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(zeros)
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(cons(x0, x1))
ISNATILIST(n__cons(y0, n__nil)) → ISNATILIST(nil)
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__0)) → ISNATILIST(n__0)
ISNATILIST(n__cons(y0, n__s(x0))) → ISNATILIST(s(x0))
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(zeros)
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(cons(x0, x1))
ISNATILIST(n__cons(y0, n__nil)) → ISNATILIST(nil)
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
ISNATILIST(n__cons(y0, n__0)) → ISNATILIST(n__0)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__s(x0))) → ISNATILIST(s(x0))
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(zeros)
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(cons(x0, x1))
ISNATILIST(n__cons(y0, n__nil)) → ISNATILIST(nil)
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__s(x0))) → ISNATILIST(n__s(x0))
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(zeros)
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(cons(x0, x1))
ISNATILIST(n__cons(y0, n__nil)) → ISNATILIST(nil)
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
ISNATILIST(n__cons(y0, n__s(x0))) → ISNATILIST(n__s(x0))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(zeros)
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(cons(x0, x1))
ISNATILIST(n__cons(y0, n__nil)) → ISNATILIST(nil)
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(cons(0, n__zeros))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__zeros)
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(cons(x0, x1))
ISNATILIST(n__cons(y0, n__nil)) → ISNATILIST(nil)
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(cons(0, n__zeros))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__zeros)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(cons(x0, x1))
ISNATILIST(n__cons(y0, n__nil)) → ISNATILIST(nil)
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(cons(0, n__zeros))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(n__cons(x0, x1))
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__nil)) → ISNATILIST(nil)
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(cons(0, n__zeros))
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(n__cons(x0, x1))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__nil)) → ISNATILIST(n__nil)
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(cons(0, n__zeros))
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(n__cons(x0, x1))
ISNATILIST(n__cons(y0, n__nil)) → ISNATILIST(n__nil)
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(cons(0, n__zeros))
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(n__cons(x0, x1))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(0, n__zeros))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(cons(n__0, n__zeros))
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(n__cons(x0, x1))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(0, n__zeros))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(cons(n__0, n__zeros))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(n__0, n__zeros))
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(n__cons(x0, x1))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(0, n__zeros))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(n__0, n__zeros))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ISNATILIST(n__cons(y0, n__length(x0))) → ISNATILIST(length(x0))
ISNATILIST(n__cons(y0, x0)) → ISNATILIST(x0)
ISNATILIST(n__cons(y0, n__cons(x0, x1))) → ISNATILIST(n__cons(x0, x1))
POL( ISNATILIST(x1) ) = 2x1 + 2
POL( length(x1) ) = 2x1
POL( cons(x1, x2) ) = x2 + 1
POL( uLength(x1, x2) ) = max{0, 2x1 + x2 - 2}
POL( and(x1, x2) ) = max{0, x1 + x2 - 1}
POL( isNat(x1) ) = 1
POL( isNatList(x1) ) = 1
POL( activate(x1) ) = 2x1 + 2
POL( n__length(x1) ) = 2x1
POL( take(x1, x2) ) = 1
POL( 0 ) = 0
POL( uTake1(x1) ) = x1
POL( isNatIList(x1) ) = 1
POL( s(x1) ) = 0
POL( uTake2(x1, ..., x4) ) = 1
POL( n__take(x1, x2) ) = max{0, -2}
POL( n__cons(x1, x2) ) = x2 + 1
POL( n__0 ) = 0
POL( tt ) = 1
POL( n__s(x1) ) = max{0, -1}
POL( n__zeros ) = 0
POL( zeros ) = 1
POL( n__nil ) = 0
POL( nil ) = 0
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
length(X) → n__length(X)
take(0, IL) → uTake1(isNatIList(IL))
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
take(X1, X2) → n__take(X1, X2)
0 → n__0
activate(n__length(X)) → length(X)
isNat(n__0) → tt
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(X) → X
isNatList(n__nil) → tt
and(tt, T) → T
isNat(n__s(N)) → isNat(activate(N))
activate(n__take(X1, X2)) → take(X1, X2)
isNatIList(n__zeros) → tt
uTake1(tt) → nil
isNatIList(IL) → isNatList(activate(IL))
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNat(n__length(L)) → isNatList(activate(L))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
cons(X1, X2) → n__cons(X1, X2)
uLength(tt, L) → s(length(activate(L)))
s(X) → n__s(X)
zeros → cons(0, n__zeros)
zeros → n__zeros
nil → n__nil
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(0, n__zeros))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(n__0, n__zeros))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(0, n__zeros))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(n__0, n__zeros))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(0, n__zeros))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(n__0, n__zeros))
0 → n__0
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(0, n__zeros))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(n__0, n__zeros))
0 → n__0
0
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(n__0, n__zeros))
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(n__0, n__zeros))
0 → n__0
0
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(n__0, n__zeros))
0
0
ISNATILIST(n__cons(y0, n__zeros)) → ISNATILIST(n__cons(n__0, n__zeros))
ISNATILIST(n__cons(n__0, n__zeros)) → ISNATILIST(n__cons(n__0, n__zeros))
ISNATILIST(n__cons(n__0, n__zeros)) → ISNATILIST(n__cons(n__0, n__zeros))
ISNATILIST(n__cons(y0, n__take(x0, x1))) → ISNATILIST(take(x0, x1))
and(tt, T) → T
isNatIList(IL) → isNatList(activate(IL))
isNat(n__0) → tt
isNat(n__s(N)) → isNat(activate(N))
isNat(n__length(L)) → isNatList(activate(L))
isNatIList(n__zeros) → tt
isNatIList(n__cons(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
isNatList(n__nil) → tt
isNatList(n__cons(N, L)) → and(isNat(activate(N)), isNatList(activate(L)))
isNatList(n__take(N, IL)) → and(isNat(activate(N)), isNatIList(activate(IL)))
zeros → cons(0, n__zeros)
take(0, IL) → uTake1(isNatIList(IL))
uTake1(tt) → nil
take(s(M), cons(N, IL)) → uTake2(and(isNat(M), and(isNat(N), isNatIList(activate(IL)))), M, N, activate(IL))
uTake2(tt, M, N, IL) → cons(activate(N), n__take(activate(M), activate(IL)))
length(cons(N, L)) → uLength(and(isNat(N), isNatList(activate(L))), activate(L))
uLength(tt, L) → s(length(activate(L)))
0 → n__0
s(X) → n__s(X)
length(X) → n__length(X)
zeros → n__zeros
cons(X1, X2) → n__cons(X1, X2)
nil → n__nil
take(X1, X2) → n__take(X1, X2)
activate(n__0) → 0
activate(n__s(X)) → s(X)
activate(n__length(X)) → length(X)
activate(n__zeros) → zeros
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__nil) → nil
activate(n__take(X1, X2)) → take(X1, X2)
activate(X) → X